From: Doug Torrance Date: Sun, 30 Oct 2022 13:40:50 +0000 (+0000) Subject: Provide version#"git description". X-Git-Tag: archive/raspbian/1.21+ds-3+rpi1~1^2^2^2~10 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=4df4d195ec23377409afd1d5a530292e522b971c;p=macaulay2.git Provide version#"git description". Forwarded: not-needed Last-Update: 2020-12-21 Since we may not be building the package from a git repository, we hardcode the git description ahead of time. This patch is automatically updated by debian/scripts/m2-get-orig-source.sh. Gbp-Pq: Name git-description.patch --- diff --git a/M2/configure.ac b/M2/configure.ac index 50bfdc2..20d2cf1 100644 --- a/M2/configure.ac +++ b/M2/configure.ac @@ -582,7 +582,7 @@ AC_SUBST(GIT_DESCRIPTION) NEW_COMMITS=`$GIT rev-list $($GIT rev-list -1 HEAD $srcdir/VERSION)..HEAD --count` GIT_COMMIT=`$GIT describe --dirty --always --match HEAD` if test "$NEW_COMMITS-$GIT_COMMIT" = "-" -then GIT_DESCRIPTION=version-$PACKAGE_VERSION-unknown +then GIT_DESCRIPTION=version-1.20-7-940e8f48f else GIT_DESCRIPTION=version-$PACKAGE_VERSION-$NEW_COMMITS-$GIT_COMMIT fi AC_DEFINE_UNQUOTED(GIT_DESCRIPTION,"$GIT_DESCRIPTION",[summary of git status])